package com.demandbreakdown.xiyun.model.dto.space;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.Size;
import lombok.Data;

/**
 * 空间更新DTO
 *
 * @author poxz
 */
@Data
@Schema(description = "空间更新DTO")
public class SpaceUpdateDTO {

    @Schema(description = "空间名称", example = "我的工作空间")
    @Size(min = 2, max = 30, message = "空间名称长度必须在2-30个字符之间")
    private String spaceName;

    @Schema(description = "空间描述", example = "这是一个用于存储工作相关图片的空间")
    @Size(max = 200, message = "空间描述长度不能超过200个字符")
    private String spaceDesc;

    @Schema(description = "空间封面图URL", example = "https://oss/cover.jpg")
    private String coverUrl;

    @Schema(description = "成员上限（仅团队空间有效，私有空间无需设置，只能升级不能降级）", example = "20")
    private Integer memberLimit;
}
